package com.wxtwxt.ruralmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxtwxt.ruralmall.common.utils.PageUtils;
import com.wxtwxt.ruralmall.product.entity.AttrEntity;
import com.wxtwxt.ruralmall.product.vo.AttrGroupWithAttrsVo;
import com.wxtwxt.ruralmall.product.vo.AttrResponseVo;
import com.wxtwxt.ruralmall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Wxt
 * @email wxt23787@126.com
 * @date 2023-01-30 19:53:31
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<AttrEntity> getAttrRelation(Long attrgroupId);

    void saveAttr(AttrVo attrVo);

    PageUtils queryBaseAttrList(Map<String, Object> params, Long catelogId, String type);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateAttrVo(AttrVo attrVo);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrgroupId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrs(Long catelogId);

    List<Long> getSearchTypeId(List<Long> attrIds);
}

